<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="http://127.0.0.1/vancl/Static/Admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://127.0.0.1/vancl/Static/Admin/js/jquery.js"></script>

<script type="text/javascript">
$(document).ready(function(){
  $(".click").click(function(){
  $(".tip").fadeIn(200);
  });
  
  $(".tiptop a").click(function(){
  $(".tip").fadeOut(200);
});

  $(".sure").click(function(){
  $(".tip").fadeOut(100);
});

  $(".cancel").click(function(){
  $(".tip").fadeOut(100);
});

});
</script>


</head>


<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">数据表</a></li>
    <li><a href="#">基本内容</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
           
    
    
    <table class="tablelist">
    		<thead>
	    		<tr>
		        <th>ID</th>
		        <th>类型名称</th>
		        <th>操作</th>
	        </tr>
        </thead>
        <tbody>
        		    <?php if(count($data) == 0){ ?>
        			<tr>				        
			        <td colspan="3" align="center">
			        		还没有类型数据，赶快<a href="<?php echo U('Add');?>" class="tablelink"> 添加 </a>吧
			        </td>
			    </tr> 
        		<?php }else{ ?>
				<?php foreach ($data as $k=>$v){?>
			        <tr>
				        <td><?php echo $v['tid'];?></td>
				        <td><?php echo $v['tname'];?></td>
				        <td>
				        		<a href="<?php echo U('Attrlist');?>" class="tablelink">属性列表</a>
				        		<a href="#" class="tablelink">修改</a>     
				        		<a href="#" class="tablelink">删除</a>
				        </td>
			        </tr> 
		        <?php }?>        		
        		<?php } ?>
        	       			       
        </tbody>
    </table>
    
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>

</body>

</html>
